home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
BSCRIPTS.CST
/
00122_Script_generalCursorChange
< prev
next >
Wrap
Text File
|
1999-04-25
|
3KB
|
113 lines
-- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
-- Developed for Bombardier, Inc.
--
-- All programming developed by:
-- Robert Fabricant, Valerie Valoueva, Ossi Shaked,
-- Henry Sauvageot, Chris Howell & Chris Girand
--
-- Use of this code by parties other than @radical.media, inc. or their
--agents
-- without the express written consent of @radical.media, inc. AND Concurrent
-- New Media Group, L.L.C. is strictly prohibited.
------------------------------------------------------
property CRImage,CRmask,CDimage,CDmask,handImage,handMask, nameRoot, chageOnMouseDown, inabled
on getPropertyDescriptionList me
set description = [:]
addProp description, #nameRoot,[#format:#string,¼
#default:"",#comment:"enter the root of cast member used for cursor"]
addProp description, #chageOnMouseDown,[#format:#boolean,¼
#default:FALSE,#comment:"check the box if cursor should change on mouseDown"]
return description
end
on get behaviorDescription
return"changes the cursor on rollover and mousedown otherwise set it to the default"
end
on mousedown me
if inabled then
if chageOnMouseDown then
cursor [CDimage,CDmask]
-- pass
end if
end if
end
on beginSprite me
set handImage = the memberNum of member "handR-image"
set handMask = the memberNum of member "handR-mask"
set CRImage = the memberNum of member (nameRoot&"R-image")
set CRmask = the memberNum of member (nameRoot&"R-mask")
if chageOnMouseDown then
set CDimage = the memberNum of member (nameRoot&"D-image")
set CDmask = the memberNum of member (nameRoot&"D-mask")
end if
set mySprite = the spriteNum of me
set aName = the name of member (the member of sprite mySprite)
if aName contains "invis" then
set inabled = FALSE
else
set inabled = TRUE
end if
end
on mouseWithin me
if inabled then
if the mousedown then
else
cursor[CRimage,CRmask]
end if
updateStage
pass
end if
end
on mouseleave me
if inabled then
if (IAmInExterior (me)) and rollover (6) then
cursor [handImage,handMask]
else
cursor -1
updateStage
-- pass
end if
end if
end
on mouseup
if inabled then
cursor[CRimage,CRmask]
pass
end if
end
on IAmInExterior me
global gselct,NumOfQTVRMenuItems, range
set qtvrPlaneSprNum = getSpriteNumFromMemberName("qtvranchor")+1
set range = NumOfQTVRMenuItems - 1
set exteriorSpriteNum = qtvrPlaneSprNum + range
if gselct = exteriorSpriteNum then
set value = TRUE
else
set value = FALSE
end if
return value
end